﻿using System;
using CodeCounsel.SharePoint.RibbonDesigner.Model;
using System.ComponentModel;

namespace CodeCounsel.SharePoint.RibbonDesigner.ViewModel
{
    public class UnknownControlViewModel
        : BaseViewModel
    {
        Control _control;
        DisplayMode _displaymode;

        public DisplayMode DisplayMode
        {
            get { return _displaymode; }
            set
            {
                if (_displaymode != value)
                {
                    _displaymode = value;
                    OnPropertyChanged(new PropertyChangedEventArgs("DisplayMode"));
                }
            }
        }
        public string Message
        {
            get { return _control.GetType().Name; }
        }

        public UnknownControlViewModel(Control control, DisplayMode displayMode)
        {
            _control = control;
            _displaymode = displayMode;
        }
    }
}
